# TODO: Add comment
# 
# Author: guochun
###############################################################################


#define sampling method for rectangle quadrat object
oneSampling.rectangle=function(quadratOBJ,populationData){
	availible=randomPointSample(quadratOBJ@a,quadratOBJ@b,populationData@x, populationData@y,populationData@plotdim[1],populationData@plotdim[2])
	return(availible)
}


setSampleResult.rectangle=function(sampleOBJ,selection,populationData){
	return(setSampleResultForquadrat(sampleOBJ,selection,populationData))
}